package io.wit.tool;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

public final class ToolString{

    public static String getIdsChar32(){
        final ThreadLocalRandom random = ThreadLocalRandom.current();
        return new UUID(random.nextInt(),random.nextInt()).toString().replaceAll("-","");
    }

    public static boolean isLinuxOS(){
        final String os = System.getProperties().getProperty("os.name");
        if (os != null && os.toLowerCase().indexOf("linux") > -1)return true;
        return false;
    }
}